module.exports = async(ctx, next) => {
    function render(json) {
        this.set("Content-Type", "application/json")
        this.body = JSON.stringify(json);
    }
    ctx.send = render.bind(ctx);
    await next();
}